<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>随行付</title>
<meta name="Copyright" content="Douco Design." />
<link href="css/public.css" rel="stylesheet" type="text/css">
<link href="css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/global.js"></script>
</head>
<body>
<div id="dcWrap">
 <div id="dcHead">
 <div id="head">
  <div class="nav">
   <ul class="navRight">
    <li><a href="JavaScript:void(0);">您好，admin</a>
    </li>
    <li class="noRight"><a href="login.php?rec=logout">退出</a></li>
   </ul>
  </div>
 </div>
</div>
<!-- dcHead 结束 --> <div id="dcLeft"><div id="menu">
 <ul class="top">
  <li><i class="home"></i></li>
 </ul>
 <script>
$(function() {
    //$(".menu_list dd");
    $(".menu_list dt").click(function(){
        $(this).toggleClass("open").next().slideToggle("fast");
    });
    
    //添加序号
    var len = $('table tr').length;
    for(var i = 1;i<len;i++){
        $('table tr:eq('+i+') td:first').text(i);
    }
    
    //点击查询
    $("#searchBtn").click(function(){
    	var jiezhangDate=$("#jiezhangDate").val();//结账日期
    	
    	location.href="zhangwuAjax?jzdate="+jiezhangDate;
    	//$.get("zhangwuAjax",{jzdate:jiezhangDate});
    	/*
    	$.ajax({
    		url:"zhangwuAjax",
    		dataType:'text',
    		type:'get',
    		data:{jzdate:jiezhangDate},
    		success:function(data){
    			var dataObj=jQuery.parseJSON(data);
    			alert("success="+dataObj.resMsg);
    			$("c").attr("items",data);
    		},
    		error:function(data){
    			var dataObj=jQuery.parseJSON(data);
    			alert("error="+dataObj.resMsg);
    			$("c").attr("items",data);
    		}
    	});
    	*/
    });
    
});
</script>

<div class="menu_list">
<dl>
<dt><span>付款申请</span></dt>
<dd>
<a href="danbifukuan"><i class="system"></i><em>单笔付款</em></a>
</dd>
<dt><span>交易查询</span></dt>
<dd>
<a href="daifujiaoyiHandler"><i class="system"></i><em>代付交易查询</em></a>
<a href="zhangwuHandler"><i class="system"></i><em>账务查询</em></a>
</dd>
<dt><span>账户管理</span></dt>
<dd>
<a href="yueHandler"><i class="system"></i><em>余额查询</em></a>
<a href="clientstatusHandler"><i class="system"></i><em>商户状态查询</em></a>
</dd>
</dl>
</div>
</div></div>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">交易查询<b>></b><strong>账务查询</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3>账务查询</h3>
    <div class="filter">

           <!--  结算日期：<input name="keyword" id="jiezhangDate" type="date" class="inpMain" value="" size="20" />
           至 <input name="keyword" type="date" class="inpMain" value="" size="20" />
     <input name="button" id="searchBtn" class="btnGray" type="submit" value="查询" />&nbsp;
     <input name="button" class="btnGray" type="submit" value="导出" />-->
结算日期：<input name="keyword" id="jiezhangDate" type="date" class="inpMain" value="" size="20" />
<input name="button" id="searchBtn" class="btnGray" type="submit" value="查询" />
    </div>
        <div id="list">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
        <th width="40" align="center">序号</th>
        <th align="left">记账时间</th>
        <th width="120" align="center">交易类型</th>
        <th width="120" align="center">子交易类型</th>
        <th width="80" align="center">收支类别</th>
        <th width="120" align="center">当笔收支金额</th>
        <th width="160" align="center">当前账户余额</th>
      </tr>
      <c:forEach var="i" items="${resData.resAccDtlResultList}">
      <tr>
        <td align="center"></td>
        <td align="center">
        	${fn:substring(i.evtTm,0,4)}-${fn:substring(i.evtTm,4,6)}-${fn:substring(i.evtTm,6,8)} ${fn:substring(i.evtTm,8,10)}:${fn:substring(i.evtTm,10,12)}:${fn:substring(i.evtTm,12,14)}
        </td>
        <td align="center"><c:out value="${i.tcd}"/></td>
        <td align="center"><c:out value="${i.subTcd}"/></td>
        <td align="center">
        	<c:if test="${i.blDrt==1}">收入</c:if>
        	<c:if test="${i.blDrt==2}">支出</c:if>
        </td>
        <td align="center"><c:out value="${i.amt}"/>元</td>
        <td align="center"><c:out value="${i.bl}"/>元</td>
      </tr>
      </c:forEach>
          </table>
    </div>
    <div class="clear"></div>
    <!-- 
    <div class="pager">总计  个记录，共  页，当前第  页 | <a href="">第一页</a> 上一页 下一页 <a href="">最末页</a></div>               
     -->
    </div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>

 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
<script type="text/javascript">

onload = function()
{
 document.forms['action'].reset();
}

function douAction()
{
 var frm = document.forms['action'];
 frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
}

</script>
</body>
</html>
